import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

import App from './App.vue'
import router from './router'
import Antd from 'ant-design-vue'
import dayjs from 'dayjs'
import VueCropper from 'vue-cropper'
import 'ant-design-vue/dist/reset.css'
import 'dayjs/locale/zh-cn'
import '@/access/index'
import 'vue-cropper/dist/index.css'


// 配置 dayjs 的语言为中文
dayjs.locale('zh-cn')

const app = createApp(App)
const pinia = createPinia()

// 启用 Pinia 持久化插件
pinia.use(piniaPluginPersistedstate)

app.use(pinia)
app.use(router)
app.use(Antd)
app.use(VueCropper)

app.mount('#app')
